﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace AudioPlayer.GUI.List {
	internal class ListSort : Comparer<ListItem> {
		public override int Compare(ListItem x, ListItem y) {
			if (x != y && x.Index != y.Index) {
				if (x.Index > y.Index) {
					return 1;
				} else {
					return -1;
				}
			} else {
				return 0;
			}
		}		
	}
}
